package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class Inform implements Serializable {

	private static final long serialVersionUID = -6035828791509534561L;

	//fields
	private java.lang.Integer id;
	private java.lang.Integer informer;
	private java.lang.String type;
	private java.lang.String link;
	private java.lang.String reference;
	private java.lang.String defendant;
	private java.lang.String content;
	private java.lang.String reply;
	private java.lang.String result;
	private java.lang.String status;
	private java.sql.Timestamp createTime;
	private java.sql.Timestamp lastupdate;

	//default constructor
	public Inform() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.Integer getInformer() {
		return informer;
	}
	public java.lang.String getType() {
		return type;
	}
	public java.lang.String getLink() {
		return link;
	}
	public java.lang.String getReference() {
		return reference;
	}
	public java.lang.String getDefendant() {
		return defendant;
	}
	public java.lang.String getContent() {
		return content;
	}
	public java.lang.String getReply() {
		return reply;
	}
	public java.lang.String getResult() {
		return result;
	}
	public java.lang.String getStatus() {
		return status;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}
	public java.sql.Timestamp getLastupdate() {
		return lastupdate;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setInformer(java.lang.Integer informer) {
		this.informer = informer;
	}
	public void setType(java.lang.String type) {
		this.type = type;
	}
	public void setLink(java.lang.String link) {
		this.link = link;
	}
	public void setReference(java.lang.String reference) {
		this.reference = reference;
	}
	public void setDefendant(java.lang.String defendant) {
		this.defendant = defendant;
	}
	public void setContent(java.lang.String content) {
		this.content = content;
	}
	public void setReply(java.lang.String reply) {
		this.reply = reply;
	}
	public void setResult(java.lang.String result) {
		this.result = result;
	}
	public void setStatus(java.lang.String status) {
		this.status = status;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}
	public void setLastupdate(java.sql.Timestamp lastupdate) {
		this.lastupdate = lastupdate;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof Inform))
			return false;

		final Inform inform = (Inform)other;
		if (!this.id.equals(inform.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("Inform[")
			.append("id=").append(id).append(", ")
			.append("informer=").append(informer).append(", ")
			.append("type=").append(type).append(", ")
			.append("link=").append(link).append(", ")
			.append("reference=").append(reference).append(", ")
			.append("defendant=").append(defendant).append(", ")
			.append("content=").append(content).append(", ")
			.append("reply=").append(reply).append(", ")
			.append("result=").append(result).append(", ")
			.append("status=").append(status).append(", ")
			.append("createTime=").append(createTime).append(", ")
			.append("lastupdate=").append(lastupdate).append("]").toString();
	}
	
	///####################################
	private String informerEmail;

	public String getInformerEmail() {
		return informerEmail;
	}
	public void setInformerEmail(String informerEmail) {
		this.informerEmail = informerEmail;
	}
}